<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/static/commons/taglibs.jsp"%>
<%@ include file="/static/commons/meta.jsp"%>
<%@ include file="/static/commons/jquery-easyui.jsp"%>
<html>
<head>
<title>${title }</title>
<link rel="stylesheet" href="${ctx }/static/styles/basic/basic.css" />
<link rel="stylesheet" href="${ctx }/static/styles/frame/main.css" />
<link rel="stylesheet" href="${ctx }/static/styles/frame/searchBtn.css" />
<link rel="stylesheet" href="${ctx }/static/styles/frame/searchCondition.css" />
<!-- 原始记录单 -->

</head>
<body onload="init()">
	<input type="hidden" name="RequestVerificationToken" value="${RequestVerificationToken}" />
	<div class="width_100 group_box">
		<div class="group_search width_100">
			<div class="rewrite_select f_l border_left_1" style="width: 330px">
				<label class="left_desc" style="width: 70px;">模板名称：</label>
				<select class="normal_select" id="template" name="p_template" style="width: 260px;">
					<option value="气体报警仪原始记录CO">气体报警仪原始记录CO</option>
					<option value="气体报警仪原始记录Ex">气体报警仪原始记录Ex</option>
					<option value="气体报警仪原始记录H2S">气体报警仪原始记录H2S</option>
					<option value="气体报警仪原始记录O2">气体报警仪原始记录O2</option>
					<option value="气体报警仪原始记录SO2">气体报警仪原始记录SO2</option>
					<option value="气体报警仪原始记录氨气">气体报警仪原始记录氨气</option>
					<option value="气体报警仪原始记录氯气">气体报警仪原始记录氯气</option>
					<option value="气体报警仪原始记录空呼">气体报警仪原始记录空呼</option>
				</select>
			</div>
			<div class="clear_both"></div>
		</div>
	</div>
	
	<div class="listFrame">
		<iframe name="listFrame" id="listFrame" frameBorder="0"
			scrolling="auto" style="width: 100%; height: 100%;"></iframe>
	</div>
</body>
<script type="text/javascript">
var headers = {};
headers['__RequestVerificationToken'] = "${RequestVerificationToken}";
function init(){
	set_iframe_h();
	$(window).resize(function(){
		set_iframe_h();
	});
	$('.easyui-combobox').combobox();
}
//设置ifream 高度
function set_iframe_h(){
	var win_height  = $(window).height();
	var func_line_h = $('.group_box').outerHeight(true);
	var list_height = win_height - func_line_h;
	$('.listFrame').css('height',list_height-10);
}

$(function(){
	var $src = "${ctx}/static/template/原始记录单/气体报警仪原始记录CO.html";
	$('#listFrame').attr('src', $src);
	
	$('#template').on('change', function(){
		$src = "${ctx}/static/template/原始记录单/"+this.value+".html";
		$('#listFrame').attr('src', $src);
	});
});
</script>
</html>